package com.lse_api.service.impl;

import com.lse_api.entity.LseUserRole;
import com.lse_api.mapper.LseUserRoleMapper;
import com.lse_api.service.LseUserRoleService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 * LSE 用户与角色关联表 2020/07/16更新 服务实现类
 * </p>
 *
 * @author 祁雪
 * @since 2020-07-16
 */
@Service
public class LseUserRoleServiceImpl extends ServiceImpl<LseUserRoleMapper, LseUserRole> implements LseUserRoleService {

    @Resource
    private LseUserRoleMapper mapper;

    @Override
    public List<LseUserRole> getUserRoles(String user) {
        return mapper.getUserRoles(user);
    }
}
